
using System.Windows;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.UnityExtensions;
using RootLibrary.WPF.Localization;
/*
using EQual.Modules.Watch;
using EQual.Modules.News;
using EQual.Modules.Market;

*/

namespace EQual
{
    public partial class EqualShellBootstrapper : UnityBootstrapper
    {
        protected override IModuleCatalog GetModuleCatalog()
        {
            var catalog = new ModuleCatalog();

            catalog.AddModule(typeof(EQual.MainModule.EqualMainModule));

            return catalog;
        }

        protected override void ConfigureContainer()
        {
            LocalizeDictionary.Instance.Culture = System.Globalization.CultureInfo.GetCultureInfo("el-GR");

            Container.RegisterType<IShellView, Shell>();

            base.ConfigureContainer();
        }

        protected override DependencyObject CreateShell()
        {
            ShellPresenter presenter = Container.Resolve<ShellPresenter>();
            
            IShellView view = presenter.View;

            view.ShowView();

            return view as DependencyObject;
        }
    }
}
